package cn.edu.ahu.aircondition.modbus.service.serviceImpl;

import cn.edu.ahu.aircondition.modbus.service.service.AirConDataDecodeService;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ahu on 2017/6/10.
 */
public class AirConDataDecodeServiceImpl implements AirConDataDecodeService {
    public List<Integer> getData(String xmlRetData){
        String[] strArr = xmlRetData.split(",");
        List<Integer> intArr = new ArrayList<Integer>(strArr.length);
        for (String aStrArr : strArr) {
            intArr.add(Integer.parseInt(aStrArr));
        }
        return intArr;
    }
}
